package fr.upmc.alasca.centreCalcul.interne.machinePhysique.connectors;

import java.util.List;

import fr.upmc.alasca.centreCalcul.interne.machinePhysique.interfaces.MachinePhysiqueAdmissionI;
import fr.upmc.components.connectors.AbstractConnector;

/**
 * @author Antoine Lavaire, Sabri Labassi, Thibaut Fleury, Ryme Fantazi
 */
public class	MachinePhysiqueAdmissionConnector
extends			AbstractConnector
implements		MachinePhysiqueAdmissionI
{

	/**
	 * @see fr.upmc.alasca.centreCalcul.interne.machinePhysique.interfaces.MachinePhysiqueAdmissionI#reserverCoeur(java.lang.String, int)
	 */
	@Override
	public	int	reserverCoeur
	(
			String	uriApplication,
			int		nbCoeursAReserver
	) throws	Exception
	{
		return ((MachinePhysiqueAdmissionI)this.offering).reserverCoeur(
				uriApplication, nbCoeursAReserver);
	}
	
	
	/**
	 * @see fr.upmc.alasca.centreCalcul.interne.machinePhysique.interfaces.MachinePhysiqueAdmissionI#relacherCoeur(java.lang.String, int)
	 */
	@Override
	public	void	relacherCoeur
	(
			String	uriApplication,
			List<String> uriCoeurs
	) throws	Exception {
		((MachinePhysiqueAdmissionI)this.offering).relacherCoeur(
				uriApplication, uriCoeurs);
	}
}
